/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 animation.h

	$Header: /resource_editor/strip_resource_name.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined(STRIP_RESOURCE_NAME_H_INCLUDED)
#define STRIP_RESOURCE_NAME_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>

// functions to manipulate strings with this format:
// type_name.folder_name.resource_name.h4d
// folder_name can be repeated 0-infinite times

std::string strip_extension( std::string name );
std::string strip_prefix( std::string name );
std::string strip_type_and_extension( std::string name );  // returns folder_name.resource
std::string strip_folder( std::string name );
std::string strip_folder_and_extension( std::string name ); // returns resource_name
std::string get_folder_name( std::string name );  // returns folder_name, terminated with
                                                  // a period IF it is not empty
std::string get_prefix( std::string name ); // get just the prefix
std::string get_extension( std::string name );


#endif // STRIP_RESOURCE_NAME_H_INCLUDED